import request from '@/utils/request'

const home = {
  getAllProjectType(params) {
    return request.get('/kjxm/index/getAllProjectType', {params})
  },
  getAllProjectCategory(params) {
    return request.get('/kjxm/index/getAllProjectCategory', {params})
  },
  getAllSubjectClassification(params) {
    return request.get('/kjxm/index/getAllSubjectClassification', {params})
  },
  getMyProjectCount(){
    return request.get(`/kjxm/index/getMyProjectCount`);
  },
  getMyDeptProjectCount(){
    return request.get(`/kjxm/index/getMyDeptProjectCount`);
  },
  getMyApproveProjectCount(){
    return request.get(`/kjxm/index/getMyApproveProjectCount`);
  },
  getMyApprovedProjectCount(){
    return request.get(`/kjxm/index/getMyApprovedProjectCount`);
  },
  getMapByYear(type){
    return request.get(`/kjxm/index/getMapByYear/${type}`);
  },
  getAllFunding(){
    return request.get(`/kjxm/index/getAllFunding`);
  },
  getDeptProjectRanking(params){
    return request.get(`/kjxm/index/getDeptProjectRanking`, {params});
  },
  getProjectCountInPhase(){
    return request.get(`/kjxm/index/getProjectCountInPhase`);
  },
  getProjectReviewCount(){
    return request.get(`/kjxm/index/getReviewCount`);
  },
  getMoneyMapByYear(type){
    return request.get(`/kjxm/index/getMoneyMapByYear/${type}`);
  },

  // 管理员 获取待我审批
  getGlyGztCount(){
    return request.get(`/kjxm/index/getGlyGztCount`);
  },
  // 申报员 获取待我审批
  getPtGztCount(){
    return request.get(`/kjxm/index/getPtGztCount`);
  },
  // 专家 待我事项
  getZjGztCount(){
    return request.get(`/kjxm/index/getZjGztCount`);
  },

}

export default home;
